﻿@{
    ViewBag.Title = "OpenProducts";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

<div class="container-fluid " style="padding: 10px">
    <form id="fr-openproducts" action="/products/OpenProducts" method="post" class="margin0">
        <input type="hidden" name="selectedProduct" value="" />
        <input type="hidden" name="cateID" value="@ViewBag.cateID" /> 
         <div class="row-fluid">
          
            <div class="span2">Site</div>
            <div class="span4">@Html.DropDownList("StoreID", null, "....Select Store....", new { @class = "input-block-level", @onchange = "GetDepartment(this.value)" })
            </div>
        </div>
        <div class="row-fluid">
            <div class="span2">Department</div>
            <div class="span4">@Html.DropDownList("DepartmentID", null, "....Select Department....", new { @class = "input-block-level", @onchange = "GetProductByDepartment(this.value)" })</div>
        </div>
        <div class="row-fluid">
            <div class="span2">Product</div>
            <div class="span10">
                <div class="row-fluid overflow-auto tb-cateDetail" style="height: 380px">
                    <table class="table table-bordered table-fix tbl-selected krmtable" data-height="380">
                        <tr>

                            <th>Product Id</th>
                            <th>Name</th>
                        </tr>
                        <tbody id="tproducts">
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span2"></div>
            <div class="span1">
                <input type="button" class="btn btn-primary" name="" onclick="location.reload();" value="Reset" />
            </div>

            <div class="span9 text-right">
                <input type="button" name="" class="btn btn-danger" value="Cancel" onclick="window.close()" />
                <input type="submit" name="" class="btn btn-success" value="Use selected" />
            </div>
        </div>

    </form>
</div>
